* {
  min-height: 0;
  font-size: 15px;
  /* `otf-font-awesome` is required to be installed for icons */
  font-family: "Font Awesome 5 Free", "IBM Plex Mono", Roboto, Helvetica, Arial,
    sans-serif;
  border: none;
  border-radius: 0;
}

/* add padding to waybar */
.horizontal {
  padding: 2px;
}

window#waybar {
  color: #ffffff;
  background-color: #16101b;
  border-radius: 10px;
  transition-duration: 0.5s;
  transition-property: background-color;
}

window#waybar.hidden {
  opacity: 0.2;
}

/*
window#waybar.empty {
    background-color: transparent;
}
window#waybar.solo {
    background-color: #FFFFFF;
}
*/

window#waybar.termite {
  background-color: #3f3f3f;
}

window#waybar.chromium {
  background-color: #000000;
  border: none;
}

#workspaces button {
  padding: 0 10px;
  color: #ffffff;
  background-color: transparent;
  /* Use box-shadow instead of border so the text isn't offset */
  box-shadow: inset 0 -3px transparent;
}

/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#workspaces button:hover {
}

#workspaces button.focused {
  color: deeppink;
}

#workspaces button.urgent {
  color: #fff;
  background-color: #eb4d4b;
}

#mode {
  color: #000;
  background-color: deeppink;
}

#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#mpd {
  margin: 0;
  padding: 0 20px;
  color: pink;
}

#window,
#workspaces {
  margin: 0 4px;
}

/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
  margin-left: 0;
}

/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
  margin-right: 0;
}

@keyframes blink {
  to {
    color: #000000;
    background-color: #ffffff;
  }
}

#battery.critical:not(.charging) {
  color: #ffffff;
  background-color: #f53c3c;
  animation-name: blink;
  animation-duration: 0.5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

label:focus {
  background-color: #000000;
}

#pulseaudio.muted {
  color: #2a5c45;
  background-color: #90b1b1;
}

#tray > .passive {
  -gtk-icon-effect: dim;
}

#tray > .needs-attention {
  background-color: #eb4d4b;
  -gtk-icon-effect: highlight;
}

#keyboard-state {
  min-width: 16px;
  margin: 0 5px;
  padding: 0 0px;
  color: #000000;
  background: #97e1ad;
}

#keyboard-state > label {
  padding: 0 5px;
}

#keyboard-state > label.locked {
  background: rgba(0, 0, 0, 0.2);
}
